// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from "@/utils/request.js";

/* 获取历史搜索记录 */
export function historySearch() {
	return request.get('v2/user/search_list', {}, {
		noAuth: true
	});
}	
	
/* 获取搜索发现列表 */
export function searchFind() {
	return request.get('search/keyword', {}, {
		noAuth: true
	});
}	

/* 清空历史搜索记录 */
export function clearSearch() {
	return request.get('clearSearch', {}, {
		noAuth: true
	});
}

/* 获取热搜榜单列表 */
export function hotSearchList() {
	return request.get('product/hot_search', {}, {
		noAuth: true
	});
}

/* 获取搜索列表 */
export function getSearchList(data) {
	return request.get('v2/search_select', data, {
		noAuth: true
	});
}